package com.weic.design.singleton;

import org.junit.Test;

public class SingleTonTest {

    @Test
    public void testSingleTon01(){
        SingleTon01 instance1 = SingleTon01.getInstance();
        SingleTon01 instance2 = SingleTon01.getInstance();
        System.out.println(instance1==instance2);

    }

    @Test
    public void testSingleton04(){
        Singleton04 instance = Singleton04.INSTANCE;
        instance.operation();

    }
}
